//
//  UILabel+Extension.swift
//  SinaWeibo
//
//  Created by celeste on 16/5/15.
//  Copyright © 2016年 celeste. All rights reserved.
//

import UIKit

extension UILabel {
    convenience init(ld_text text: String,
        fontSize: CGFloat = 14,
        textColor: UIColor = UIColor.darkGrayColor(),
        alignment: NSTextAlignment = .Left) {
        self.init()
        self.text = text
        font = UIFont.systemFontOfSize(fontSize)
        self.textColor = textColor
        self.textAlignment = alignment
        self.numberOfLines = 0
        sizeToFit()
    }

}
